import { ref } from "vue";

export const images = ref([
  {
    url: "https://photokit.com/features/images/image-text-after.webp",
    level: 1,
    id: 41,
    marks: [
      {
        shape_type: "line",
        line: {
          point0: "66.691176,18.408824",
          point1: "66.185294,403.658824",
          point2: "442.347059,403.658824",
          point3: "600.347059,500.658824",
          point4: "800.347059,18.658824",
          point4: "900.347059,403.658824",
        },
      },
    ],
    borderColor: "red",
  },
  {
    id: 62,

    level: 2,
    url: "https://pic.616pic.com/phototwo/00/07/67/619766a57f5df3279.jpg",
    marks: [
      {
        shape_type: "polygon",
        polygon: {
          point0: "66.691176,18.408824",
          point1: "66.185294,403.658824",
          point2: "442.347059,403.658824",
          point3: "600.347059,500.658824",
          point4: "800.347059,18.658824",
          point4: "900.347059,403.658824",
        },
      },
    ],
    borderColor: "yellow",
  },
  {
    id: 36,

    level: 3,

    url: "https://letsenhance.io/static/8f5e523ee6b2479e26ecc91b9c25261e/1015f/MainAfter.jpg",
    marks: [
      {
        shape_type: "curve",
        line: {
          point0: "200.417647,300",
          point1: "200.826471,500",
          point2: "152.838235,134.152941",
          point3: "300.838235,300.152941",
          point3: "300,200",
          point3: "500,600",
          point3: "900,600",
        },
      },
    ],
    borderColor: "pink",
  },
  {
    id: 45,
    level: 4,

    url: "https://pic.616pic.com/bg_w1180/00/00/37/RuNqtb2Qcz.jpg",
    marks: [{ shape_type: "rect", rect: "100,100,500,500" }],
    borderColor: "yellow",
  },
  {
    level: 5,
    id: 65,

    url: "https://img.88tph.com/b1/2f/sS9BmhPREe2aFwAWPgWqLw-1.jpg!/watermark/url/L3BhdGgvbG9nby5wbmc/align/center/fw/640/quality/70",
    marks: [{ shape_type: "circle", center: "350,250", radius: "100" }],
    borderColor: "#fff",
  },
  {
    level: 5,
    id: 949,

    url: "https://img.88tph.com/b1/2f/sS9BmhPREe2aFwAWPgWqLw-1.jpg!/watermark/url/L3BhdGgvbG9nby5wbmc/align/center/fw/640/quality/70",
    marks: [{ shape_type: "circle", center: "350,250", radius: "100" }],
    borderColor: "#fff",
  },
  {
    level: 5,
    id: 66,

    url: "https://img.88tph.com/b1/2f/sS9BmhPREe2aFwAWPgWqLw-1.jpg!/watermark/url/L3BhdGgvbG9nby5wbmc/align/center/fw/640/quality/70",
    marks: [{ shape_type: "circle", center: "350,250", radius: "100" }],
    borderColor: "#fff",
  },
]);

for (let i = 0; i < 100000; i++) {
  if (i % 2) {
    images.value.push({
      id: i + 1,
      url: "https://photokit.com/features/images/image-text-after.webp",
      marks: [{ shape_type: "rect", rect: "100,100,500,500" }],
      borderColor: "yellow",
    });
  } else {
    images.value.push({
      url: "https://letsenhance.io/static/8f5e523ee6b2479e26ecc91b9c25261e/1015f/MainAfter.jpg",
      level: 1,
      id: i + 1,
      marks: [
        {
          shape_type: "line",
          line: {
            point0: "66.691176,18.408824",
            point1: "66.185294,403.658824",
            point2: "442.347059,403.658824",
            point3: "600.347059,500.658824",
            point4: "800.347059,18.658824",
            point4: "900.347059,403.658824",
          },
        },
      ],
      borderColor: "red",
    });
  }
}

export const list = ref({
  materialPackId: 12345, //素材包Id
  workPackId: 67890, //工作包Id
  submitType: 0, //自动提交还是手动提交
  dataList: [
    {
      materialId: 111, //素材Id
      Details: [
        {
          markId: "2df6w97q", //标记Id
          frameId: 2, //视频帧有帧号Id
          workPackId: 222, //此属性被哪个工作包ID修改
          createTime: "2024-12-19T10:15:30", //创建时间
          createUser: "syt7855", //创建人员
          labelKey: "rect", //属性key
          labelvalue: "132.728822,218.363031,451.550496,481.659583", //属性value
          History: [
            //修改历史
            {
              changeTime: "2024-12-19T10:15:30", //修改时间
              changeUser: "yt7688", //修改人员
              value: "blue", //修改属性value值
              workPackId: 222, //修改工序
            },
            {
              changeTime: "2024-12-18T14:00:00",
              createUser: "lt7699",
              value: "green",
              workPackId: 333,
            },
          ],
          bRollback: 0, //是否被打回， 0-否， 1-是
        },
        {
          markId: "2df6w97q",
          jobTypePackId: 222,
          createTime: "2024-12-19T10:15:45",
          createUser: "syt7855",
          labelKey: "rect",
          labelvalue: "132.728822,218.363031,451.550496,481.659583",
          History: [
            {
              changeTime: "2024-12-19T10:15:30",
              changeUser: "yt7688",
              value: "1269.877833,866.881773,1366.599015,1022.710345",
              workPackId: 222,
            },
          ],
          bRollback: 1,
          rollbackUser: "wys9008", //打回人员
          rollbackTime: "2024-12-19T14:00:00", //打回时间
          rollbackRemark: "边界未覆盖", //打回备注
        },
      ],
    },
    {
      materialId: 112,
      Details: [
        {
          markId: "u5ys629e",
          frame: 1,
          workPackId: 222,
          createTime: "2024-12-19T10:15:30",
          createUser: "syt7855",
          labelKey: "rect",
          labelvalue: "132.728822,218.363031,451.550496,481.659583",
          History: [
            {
              changeTime: "2024-12-19T10:15:30",
              changeUser: "yt7688",
              value: "red",
              workPackId: 222,
            },
            {
              changeTime: "2024-12-18T14:00:00",
              createUser: "lt7699",
              value: "green",
              workPackId: 333,
            },
          ],
          bRollback: 0,
          rollbackUser: "wys9008",
          rollbackTime: "2024-12-19T14:00:00",
          rollbackRemark: "颜色标错",
        },
        {
          markId: "u5ys629e",
          frame: 1,
          workPackId: 222,
          createTime: "2024-12-19T10:15:45",
          createUser: "syt7855",
          labelKey: "rect",
          labelvalue: "132.728822,218.363031,451.550496,481.659583",
          History: [
            {
              changeTime: "2024-12-19T10:15:30",
              changeUser: "yt7688",
              value: "1269.877833,866.881773,1366.599015,1022.710345",
              workPackId: 222,
            },
          ],
          bRollback: 0,
        },
      ],
    },
  ],
});
